Can you tell Safari what app to use to open document links?
How do you determine what application will open up document links in Safari? I am creating a website with many links to xls, xlsx, ppt, pptx, doc, docx documents. When I click on one of these links, it either downloads the file if I have published the site to a host site, or brings me to the file in Finder if the website is accessed from a local drive. In other words, the site was exported and not published.
But if I click on a link to a Pages, Numbers or Keynote file, it opens it up the linked document in that application regardless of whether I'm going from the published site or from the exported site on a local folder. I'd like the above Microsoft file types to automatically open up in their appropriate apps as well.
I know how to set what application gets opened on your Mac when you open a file depending on the file extension, but is there a way to tell Safari how to do this too?? For example, I've got doc and docx files set up to open Pages when I open those types of files which works fine on my Mac. But the same behavior doesn't hold true when opening these documents from Links on a web page in Safari. I thought this method would flow through and work the same way when opening document links in Safari, but it apparently doesn't.
iMac, Mac OS X (10.7.4), iPhone 4 16GB / iPad 3 32GB